import { createComponent } from "./create-component"

export const StatAnatomy = createComponent((props) => {
  const { palette, ...rest } = props
  return (
    <svg
      width={400}
      height={300}
      viewBox="0 0 400 300"
      fill="none"
      xmlns="http://www.w3.org/2000/svg"
      {...rest}
    >
      <path
        d="M133.409 161.398C131.364 161.398 129.545 161.047 127.955 160.347C126.373 159.646 125.123 158.67 124.205 157.42C123.286 156.17 122.798 154.726 122.741 153.088H128.082C128.13 153.874 128.39 154.561 128.864 155.148C129.337 155.725 129.967 156.175 130.753 156.497C131.539 156.819 132.42 156.98 133.395 156.98C134.437 156.98 135.36 156.8 136.165 156.44C136.97 156.071 137.599 155.56 138.054 154.906C138.509 154.253 138.731 153.5 138.722 152.648C138.731 151.767 138.504 150.991 138.04 150.318C137.576 149.646 136.903 149.12 136.023 148.741C135.152 148.363 134.1 148.173 132.869 148.173H130.298V144.111H132.869C133.883 144.111 134.768 143.936 135.526 143.585C136.293 143.235 136.894 142.742 137.33 142.108C137.765 141.464 137.978 140.721 137.969 139.878C137.978 139.054 137.794 138.339 137.415 137.733C137.045 137.117 136.52 136.639 135.838 136.298C135.166 135.957 134.375 135.787 133.466 135.787C132.576 135.787 131.752 135.948 130.994 136.27C130.237 136.592 129.626 137.051 129.162 137.648C128.698 138.235 128.452 138.936 128.423 139.75H123.352C123.39 138.121 123.859 136.691 124.759 135.46C125.668 134.22 126.88 133.254 128.395 132.562C129.91 131.862 131.61 131.511 133.494 131.511C135.436 131.511 137.121 131.876 138.551 132.605C139.991 133.325 141.103 134.295 141.889 135.517C142.675 136.739 143.068 138.088 143.068 139.565C143.078 141.204 142.595 142.577 141.619 143.685C140.653 144.793 139.384 145.517 137.812 145.858V146.085C139.858 146.369 141.425 147.127 142.514 148.358C143.613 149.58 144.157 151.099 144.148 152.918C144.148 154.546 143.684 156.005 142.756 157.293C141.837 158.571 140.568 159.575 138.949 160.304C137.339 161.033 135.492 161.398 133.409 161.398ZM146.896 155.602V151.412L159.239 131.909H162.734V137.875H160.603L152.293 151.043V151.27H169.523V155.602H146.896ZM160.773 161V154.324L160.83 152.449V131.909H165.802V161H160.773ZM182.96 161.398C181.066 161.398 179.371 161.043 177.875 160.332C176.379 159.613 175.19 158.628 174.31 157.378C173.438 156.128 172.974 154.698 172.918 153.088H178.031C178.126 154.281 178.642 155.257 179.58 156.014C180.517 156.762 181.644 157.136 182.96 157.136C183.992 157.136 184.911 156.9 185.716 156.426C186.521 155.953 187.155 155.295 187.619 154.452C188.083 153.609 188.311 152.648 188.301 151.568C188.311 150.47 188.079 149.494 187.605 148.642C187.132 147.79 186.483 147.122 185.659 146.639C184.835 146.147 183.888 145.901 182.818 145.901C181.947 145.891 181.09 146.052 180.247 146.384C179.404 146.715 178.737 147.151 178.244 147.69L173.486 146.909L175.006 131.909H191.881V136.312H179.366L178.528 144.026H178.699C179.239 143.391 180.001 142.866 180.986 142.449C181.971 142.023 183.05 141.81 184.224 141.81C185.986 141.81 187.558 142.226 188.94 143.06C190.323 143.884 191.412 145.02 192.207 146.469C193.003 147.918 193.401 149.575 193.401 151.44C193.401 153.363 192.955 155.077 192.065 156.582C191.185 158.079 189.958 159.258 188.386 160.119C186.824 160.972 185.015 161.398 182.96 161.398ZM203.023 157.023L202.839 158.585C202.706 159.778 202.469 160.991 202.129 162.222C201.797 163.462 201.447 164.603 201.077 165.645C200.708 166.687 200.41 167.506 200.183 168.102H196.717C196.849 167.525 197.029 166.739 197.256 165.744C197.493 164.75 197.72 163.633 197.938 162.392C198.156 161.152 198.303 159.892 198.379 158.614L198.478 157.023H203.023ZM217.763 161.398C216.371 161.388 215.013 161.147 213.687 160.673C212.361 160.19 211.168 159.409 210.107 158.33C209.047 157.241 208.204 155.796 207.579 153.997C206.954 152.188 206.646 149.949 206.656 147.278C206.656 144.788 206.921 142.567 207.451 140.616C207.981 138.666 208.744 137.018 209.738 135.673C210.732 134.319 211.93 133.287 213.332 132.577C214.743 131.866 216.319 131.511 218.062 131.511C219.889 131.511 221.509 131.871 222.92 132.591C224.34 133.311 225.486 134.295 226.357 135.545C227.228 136.786 227.768 138.188 227.977 139.75H222.792C222.527 138.633 221.982 137.742 221.158 137.08C220.344 136.407 219.312 136.071 218.062 136.071C216.045 136.071 214.492 136.947 213.403 138.699C212.323 140.451 211.779 142.856 211.769 145.915H211.968C212.432 145.081 213.033 144.366 213.772 143.77C214.511 143.173 215.344 142.714 216.272 142.392C217.21 142.061 218.199 141.895 219.241 141.895C220.945 141.895 222.475 142.302 223.829 143.116C225.192 143.931 226.272 145.053 227.067 146.483C227.863 147.903 228.256 149.532 228.246 151.369C228.256 153.282 227.82 155.001 226.94 156.526C226.059 158.041 224.833 159.234 223.261 160.105C221.689 160.976 219.856 161.407 217.763 161.398ZM217.735 157.136C218.767 157.136 219.691 156.885 220.505 156.384C221.319 155.882 221.963 155.205 222.437 154.352C222.91 153.5 223.142 152.544 223.133 151.483C223.142 150.441 222.915 149.499 222.451 148.656C221.996 147.813 221.367 147.146 220.562 146.653C219.757 146.161 218.838 145.915 217.806 145.915C217.039 145.915 216.324 146.062 215.661 146.355C214.998 146.649 214.421 147.056 213.928 147.577C213.436 148.088 213.048 148.685 212.763 149.366C212.489 150.039 212.347 150.759 212.337 151.526C212.347 152.539 212.584 153.472 213.048 154.324C213.512 155.176 214.151 155.858 214.965 156.369C215.78 156.881 216.703 157.136 217.735 157.136ZM234.247 161L246.619 136.511V136.312H232.259V131.909H252.074V136.412L239.716 161H234.247ZM267.151 161.554C264.812 161.554 262.805 160.962 261.129 159.778C259.462 158.585 258.179 156.866 257.279 154.622C256.389 152.368 255.944 149.655 255.944 146.483C255.953 143.311 256.403 140.612 257.293 138.386C258.193 136.152 259.476 134.447 261.143 133.273C262.819 132.098 264.822 131.511 267.151 131.511C269.481 131.511 271.484 132.098 273.16 133.273C274.836 134.447 276.119 136.152 277.009 138.386C277.909 140.621 278.359 143.32 278.359 146.483C278.359 149.665 277.909 152.383 277.009 154.636C276.119 156.881 274.836 158.595 273.16 159.778C271.493 160.962 269.49 161.554 267.151 161.554ZM267.151 157.108C268.969 157.108 270.404 156.213 271.455 154.423C272.516 152.624 273.046 149.977 273.046 146.483C273.046 144.172 272.805 142.231 272.322 140.659C271.839 139.087 271.157 137.903 270.276 137.108C269.396 136.303 268.354 135.901 267.151 135.901C265.343 135.901 263.913 136.8 262.862 138.599C261.81 140.389 261.28 143.017 261.271 146.483C261.261 148.803 261.493 150.754 261.967 152.335C262.45 153.917 263.131 155.11 264.012 155.915C264.893 156.71 265.939 157.108 267.151 157.108Z"
        fill={palette[3]}
      />
      <path
        d="M132.8 178.4C132.423 177.896 131.577 177.896 131.2 178.4L122.2 190.4C121.972 190.703 121.936 191.108 122.105 191.447C122.275 191.786 122.621 192 123 192H141C141.379 192 141.725 191.786 141.895 191.447C142.064 191.108 142.028 190.703 141.8 190.4L132.8 178.4Z"
        fill={palette[3]}
      />
      <rect x={122} y={103} width={123} height={10} rx={5} fill={palette[2]} />
      <rect x={152} y={182} width={51} height={10} rx={5} fill={palette[2]} />
    </svg>
  )
})
